package com.kfm.jdbc.day0328;


import com.kfm.jdbc.day0328.entity.Account;
import com.kfm.jdbc.day0328.entity.Goods;

import java.util.List;

public class Test {

    public static void main(String[] args) {
        String url = "jdbc:mysql://localhost:3306/kfm_store";
        String username = "root";
        String password = "";
        DBUtils<Goods> dbUtils = new DBUtils<>(5, url, username, password);

        String sql = "SELECT * FROM goods";

        List<Goods> list = dbUtils.select(sql, Goods.class);

        System.out.println(list);

    }
}
